<html>
<head><meta charset="utf-8"><title>line numbers from LSP range · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/line.20numbers.20from.20LSP.20range.html">line numbers from LSP range</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="237392826"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/line%20numbers%20from%20LSP%20range/near/237392826" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Andy Russell <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/line.20numbers.20from.20LSP.20range.html#237392826">(May 04 2021 at 20:28)</a>:</h4>
<p>Given an LSP range, what would be the most appropriate way to get the line numbers that contain that range? I assume it would be through the LineIndex, but I'm not sure what the most appropriate API would be</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>